package edu.sctu.practice.class02.zengguangchuan.assign2;

/**
 * Created by lenovo0 on 2015/10/8.
 */
public class Circle {
    public double radius;
    public static int numOfObjects = 0;

    public Circle() {
        radius = 1;
        numOfObjects++;
    }

    public Circle(double r) {
        this.radius = r;
        numOfObjects++;
    }

    public double Circlearea() {
        double Circlearea = radius * radius * Math.PI;
        return Circlearea;
    }

    public static void printCircle(Circle c) {
        System.out.println("radius:" + c.radius);
        System.out.println("Circlearea:" + c.Circlearea());

    }
}
